package core.util.database.index.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Column ;

import core.product.model.Product;

@Entity
@Table(name="productsearchindex")
public class ProductSearchIndex implements Serializable
{
	private static final long serialVersionUID = 2322232L;
	private Long uuid ;
	private String searchKey ;
	private Product result ;
	
	@Id
	@GeneratedValue
	@Column(name="uuid")
	public Long getUuid() {
		return uuid;
	}
	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}
	@Column(name="searchkey")
	public String getSearchKey() {
		return searchKey;
	}
	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}
	@OneToOne
	public Product getResult() {
		return result;
	}
	public void setResult(Product result) {
		this.result = result;
	}
	
}
